package com.uroad.jilinpda.webservice;


import com.uroad.lib.data.Constant;

import java.util.HashMap;

public class BaseWS {
	//正式环境url
//	public static String url = "http://jletc.u-road.com/JTEAASAPIServer/index.php?/";
	/**
	 * 20180708 辽通宝、设备、用户、短信、广告相关接口
	 * 涉及WS类：deviceWS userWS smsmessageWS adWS ltbWS
	 */
	public static String new_url = "http://jletc.u-road.com/JTEAASAPIServer/index.php?";
	public static String new_url_4g = "http://jletc.u-road.com/LNUnionEtcTransServer1";
//	public static String new_url_4g = "http://172.168.5.21/LNUnionEtcTransServer";

	public static String pingIp = "172.168.5.21";

	/*public static RequestParams getBaseParams() {
		RequestParams params = new RequestParams();
		return params;
	}*/

	public static HashMap<String, String> getOkhttpParams(){
		HashMap<String, String> requestBody = new HashMap<>();
		return requestBody;
	}

	/**
	 * 获取new_url相关接口全地址
	 * @param fun
	 * @return
	 */
	/**
	 * 获取new_url相关接口全地址
	 * @param fun
	 * @return
	 */
	public static String getNewUrl(String fun) {
		if ("WIFI".equals(Constant.NET)){
			return new_url + fun;
		}else if("4G".equals(Constant.NET)){
			return new_url_4g + fun;
		}
		return new_url + fun;
	}

}
